//
//  LoserAttendanceVC.m
//  SchoolTask
//
//  Created by feel on 16/8/25.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "LoserAttendanceVC.h"
#import "LoserAttendanceView.h"
#import "MyAttendanceVC.h"
#import "SelectImageForIpone.h"

@interface LoserAttendanceVC ()<LoserAttendanceViewDetegate>

@end

@implementation LoserAttendanceVC

-(void)viewDidLoad {
    
    CGFloat w = 414 / kScreenW;
    CGFloat h = 736 / kScreenH;
    
    LoserAttendanceView *loser = [[LoserAttendanceView alloc]init];
    [self.view addSubview:loser];
    loser.delegate = self;
    
    SelectImageForIpone *select = [[SelectImageForIpone alloc]init];
    CGRect rect = select.view.frame;
    rect.origin.y = 500/h;
    rect.origin.x = 15/w;
    rect.size.width = kScreenW-30/w;
    rect.size.height = 100/h;
    select.view.frame = rect;
    [self addChildViewController:select];
    [self.view addSubview:select.view];

}

- (void)jump {
    
    MyAttendanceVC *attendan = [[MyAttendanceVC alloc]init];
    [self.navigationController pushViewController:attendan animated:NO];
}
@end
